package com.inews.base.security.repository;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.inews.base.persistence.mybatis.MyBatisRepository;
import com.inews.base.security.vo.SecurityUserDetail;
import com.inews.business.entity.TblSysResource;

@MyBatisRepository
public interface SecurityDao {
	
	/**
	 * 根据登录用户名查询对应的资源.
	 * 
	 * @param loginName
	 *            the login name
	 * @return the base resource by login name
	 */
	public List<TblSysResource> getSysResourceByUserName(String userName);
	
	
	
	/**
	 * 根据登录用户名查询对应用户信息.
	 *
	 * @param loginName the login name
	 * @return the base user by login name
	 */
	public List<SecurityUserDetail> getSysUserByUserName(String userName);
	
	
}
